import axios from "@/config/api.js";

let api = {};

api.getUserInfo = ()=>{
	return axios.post("/api/member/login/getInfo");
}

api.doLogin = (param)=>{
	return axios.post("/api/member/login/doLogin",param)
}

api.logOut = ()=>{
	uni.setStorageSync("token","");
	uni.redirectTo({
		url: "/pages/own/login"
	});
}

api.getRegSwitch = ()=>{
	return axios.post("/api/member/system/getRegSwitch");
}

api.doReg = (param)=>{
	return axios.post("/api/member/login/doReg",param);
}

export default api;